uint32_t can_send(uint16_t id,uint8_t *can_data, uint8_t data_length);
uint32_t can_recieve(uint16_t recieve_id,uint8_t *recieve_data,uint8_t data_length);
void recieve_msg_controll_init(uint32_t id);
void CAN_vErrorClear(void);

void CANinterrupt_Init(void);

#define	CAN_INTERRUPT   		5
#define	CAN_INT_FLAG			((IRCON2 & 0x01) != 0)
#define CAN_INT_FLAG_CLEAR		IRCON2 &= ~(ubyte)0x01;
#define MSG_TRANSMIT			0
#define MSG_RECIEVE				1
#define MSG_ERROR				2
	
